package com.situ.day23.singleton;

public class Singleton5 {
    //private static Singleton5 INSTANCE = new Singleton5();

    //静态内部类
    private static class Holder {
        static Singleton5 INSTANCE = new Singleton5();
    }


    public Singleton5 getInstance() {
        return Holder.INSTANCE;
    }
}
